package com.company.作业;

import java.util.Scanner;

public class Main {
        public static void main(String[] args) {
            int sum=0;
            System.out.println("请输入网购金额"+"\n"+"请输入客户与发货点之间的距离（公里数）");
            Scanner in=new Scanner(System.in);
            int jine= in.nextInt();
            int juli= in.nextInt();
            if((juli>=0)&&(juli<=10)){
                sum=jine+10;
                System.out.println("总金额="+sum);
            }
             else if((juli>=11)&&(juli<=50)){
                sum=jine+50;
                System.out.println("总金额="+sum);
            }
            else if((juli>=51)&&(juli<=100)){
                sum=jine+100;
                System.out.println("总金额="+sum);
            }
            else if(juli>100){
                sum=jine+200;
                System.out.println("总金额="+sum);
            }
        }
}














